package com.application.service;

import com.application.controller.Result;
import com.application.domain.Community;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CommunityService extends IService<Community> {

    int saveCommunity(Community community);

    //删除操作
    int deleteByName(String name);

    int deleteByNames(List<String> names);

    int deleteAll();

    //修改操作
    int updateByName(Community community, String openid);

    //查询操作
    Community selectByName(String name);

    List<Community> selectByNames(List<String> names);

    List<Community> selectAll();


    int DownLoad(Community community);


    int applyForCommunity(String name,String username,String tel);

    List<Community> getBySchool(String school);

    Community queryById(Integer id);

    Result updateCommunity(Community community);
}
